package com.cmwa.solution.business.investTrade.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.cmwa.ec.base.util.SpringUtil;

@Controller
@RequestMapping("/business/investTrade")
public class InvestTradeController {
	
	@RequestMapping("/home")
	public String investTradePage() {
		return "business/investTrade/home";
	}
	
	@RequestMapping("/home2")
	public ModelAndView virtualAccountPage() {
		String virtualaAccountPath = SpringUtil.getProperty("sys.virtualaAccountPath");
		ModelAndView model = new ModelAndView();
		model.addObject("virtualaAccountPath",virtualaAccountPath);
		model.setViewName("business/investTrade/home2");
		return model;
	}
	
	@RequestMapping("/investTradeOverView")
	public String investTradeOverView(){
		return "business/investTrade/investTradeOverView";
	}

}
